﻿using BCCommon.Enums;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCEntity.WeChatComponent.WeChatMessageRecord
{
    /// <summary>
    /// 微信消息记录
    /// </summary>
    public class WeChatMessageRecordEntity
    {
        /// <summary>
		/// 微信消息记录Id
        /// </summary>
        public long WeChatMessageRecordId { get; set; }
        /// <summary>
        /// 本公共账号(开发者微信号)
        /// </summary>
        public string ToUserName { get; set; }
        /// <summary>
        /// 用户账号(发送方账号:OpenId)
        /// </summary>
        public string FromUserName { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 接收消息类型
        /// </summary>
        public WeChatMessageType MessageType { get; set; }
        /// <summary>
        /// 事件名称
        /// </summary>
        public string EventName { get; set; }
        /// <summary>
        /// 事件Key值
        /// </summary>
        public string EventKey { get; set; }
        /// <summary>
        /// 消息id
        /// </summary>
        public long MessageId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 回复（1）、接收（0）
        /// </summary>
        public bool IsReply { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 连接
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 地理位置纬度
        /// </summary>
        public double? LocationX { get; set; }
        /// <summary>
        /// 地理位置经度
        /// </summary>
        public double? LocationY { get; set; }
        /// <summary>
        /// 地图缩放大小（接收到位置消息）
        /// </summary>
        public int? Scale { get; set; }
        /// <summary>
        /// 地理位置精度（上报地理位置时）
        /// </summary>
        public double? LocationPrecision { get; set; }
        /// <summary>
        /// 地理位置信息
        /// </summary>
        public string LocationLabel { get; set; }
        /// <summary>
        /// 媒体素材Id
        /// </summary>
        public string MediaId { get; set; }
        /// <summary>
        /// 缩略图媒体素材Id
        /// </summary>
        public string ThumbMediaId { get; set; }
        /// <summary>
        /// 语音格式（Amr,Speex等）
        /// </summary>
        public string Fomat { get; set; }
        /// <summary>
        /// 语音识别结果（UTF编码）
        /// </summary>
        public string Recognition { get; set; }
        /// <summary>
        /// 图片连接
        /// </summary>
        public string PicUrl { get; set; }
        /// <summary>
        /// 二维码的ticket，可用来换取二维码图片
        /// </summary>
        public string Ticket { get; set; }
        /// <summary>
        /// 已回复
        /// </summary>
        public bool Replied { get; set; }

        /// <summary>
        /// 接收方用户昵称
        /// </summary>
        public string ToUserNickName { get; set; }
        /// <summary>
        /// 发送方用户昵称
        /// </summary>
        public string FromUserNickName { get; set; }
        /// <summary>
        /// 发送方用户头像
        /// </summary>
        public string FromUserHeadimgurl { get; set; }
        /// <summary>
        /// 接收方用户头像
        /// </summary>
        public string ToUserHeadimgurl { get; set; }
        /// <summary>
        /// 发送方用户性别
        /// </summary>
        public string FromUserSex { get; set; }
        /// <summary>
        /// 接收方用户性别
        /// </summary>
        public string ToUserSex { get; set; }
    }
}
